﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！-->
    <title>学生惠后台管理系统</title>
    <link rel="stylesheet" href="/App/Admin/public/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/App/Admin/public/css/style.css"/>
</head>
<body>
<div class="mainBody">
   <include file="Public:left"/>
    <div class="main">
          <include file="Public:top"/>

        <div class="subNav">
            <span class="text"><i class="iconFont">&#xe600;</i>系统设置</span>
        </div>

        <div class="indexBox">
            <div class="con-det">
                <div class="row">
                    <div class="col-md-12">
                        <form id="commentForm">
                            <input   type="hidden"  id="packet_id" value="{$dataInfo.id}">
                            <table class="formTable editForm">
                                <tr>
                                    <td class="noBor" valign="top">红包单价</td>
                                    <td class="noBor" valign="top"><input type="text" class="inp form-control" id="packet_unit" value="{$dataInfo.packet_unit}" ></td>
                                    <td class="noBor"></td>
                                    <td class="noBor" valign="top">客服电话</td>
                                    <td class="noBor" valign="top"><input type="text" class="inp form-control" id="service_phone" value="{$dataInfo.service_phone}" ></td> 
                                </tr>
                                <tr>
                                    <td valign="top">惠通知价格</td>
                                    <td valign="top"><input type="text" class="inp form-control"   id="notice_cost" value="{$dataInfo.notice_cost}" ></td>
                                    <td></td>
                                    <td valign="top">平台推广费用</td>
                                    <td valign="top"><input type="text" class="inp form-control"  id="spread_cost" value="{$dataInfo.spread_cost}" ></td>
                                </tr>
                                <tr>
                                    <td class="textAliRi" colspan="5">
                                        <button class="btn btn-primary blue" type="submit">保存</button>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/public.js"></script>


<script>
    $(".btn-primary ").click(function(){
        var packet_id= $('#packet_id').val();
        
	var spread_cost=$('#spread_cost').val();
	var notice_cost=$('#notice_cost').val();
	var packet_unit=$('#packet_unit').val();
	var service_phone =$('#service_phone').val();
       
		$.post('{:U('Set/SaveEdit')}',{packet_id:packet_id,spread_cost:spread_cost,notice_cost:notice_cost,packet_unit:packet_unit,service_phone:service_phone},function(data){
            if(data==100){
               
                alert('保存成功');
            }
        });
    })
</script>

</body>
</html>








